package com.hskn.hss.module.button.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hskn.hss.entity.AjaxResult;
import com.hskn.hss.exception.HssException;
import com.hskn.hss.module.button.entity.SysButton;

import java.util.List;
import java.util.Map;
import java.util.function.Function;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author hskn
 * @since 2021-05-04
 */
public interface ISysButtonService extends IService<SysButton> {
    AjaxResult insert(JSONObject params) throws HssException;

    AjaxResult deleteByid(JSONObject params) throws HssException;

    AjaxResult update(JSONObject params) throws HssException;

    SysButton getInfoById(JSONObject params) throws HssException;

    JSONObject getList(JSONObject params) throws HssException;

    List<SysButton> GetButtonListByMenuId(String menuid);

    List<SysButton> selectList(Wrapper<SysButton> sysButtonWrapper);

    Map<String,List<SysButton>> getListMap(Wrapper<SysButton> sysButtonWrapper, Function<? super SysButton, ? extends String> classifier);
}
